package com.token.sysflow.impl;

import com.token.sql.IntegrateSql;
import com.token.sysflow.core.TransmitFlow;
import com.token.sysflow.enumerate.ActionTypeEnum;
import lombok.Getter;
import lombok.Setter;

/**
 * 转审
 */
public class TransmitFlowImpl extends AbstractFlowHandlerImpl{
    /**
     * 办理人
     */
    @Setter
    @Getter
    private String[] selectApprover;

    /**
     * 初始化参数
     *
     * @param iSql 类型
     * @throws Exception 抛出错误
     */
    public void initParameter(IntegrateSql iSql) throws Exception {
        flowCore = new TransmitFlow(iSql, keyUnid);
    }

    /**
     * 提交操作类型
     *
     * @return int
     */
    public ActionTypeEnum getActionType() {
        return ActionTypeEnum.TRANSMIT;
    }

}